<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        /* 给标签table的元素设置样式 */
        table,
        table th,
        table td{
            /* 设置边框 宽度1px */
            border:1px solid black;
            border-collapse:collapse;
        }
        table{
            text-align:center;
        }
    </style>   
</head>
<body>
    <table >
        <caption>表名</caption>
        <!-- 表头 -->
        <thead>
        <!-- 列 -->
        <th>标题1</th>
        <th>标题2</th>
        <th>标题3</th>
        <th>数量</th>
        <!-- 行 -->
        </thead>
        <!-- 表体 -->
        <tbody>
            <!-- 行 -->
            <tr>
                <!-- 列 -->
                <td rowspan="2">11</td>
                <td>12</td>
                <td>13</td>
                <td>2</td>
            </tr>
            <!-- 行 -->
            <tr>
                <!-- 列 -->
                <!-- <td>21</td> -->
                <td>22</td>
                <td>23</td>
                <td>3</td>
            </tr>
             <!-- 行 -->
             <tr>
                <!-- 列 -->
                <td>31</td>
                <td>32</td>
                <td>33</td>
                <td>5</td>
            </tr>
        </tbody>
        <!-- 表尾 -->
        <tfoot>
            <tr>
            <!-- 合并列colspan 合并行rowspan -->
            <th colspan="3">总计</th>
            <td>10</td>
            </tr>
        </tfoot>   
    </table>
</body>
</html>